package com.wzg.ttstestandroid.RealTimeVoice;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * You might think you can read it or optimize it, but no,you're wrong, Please  believe me. You'll see to do.
 * author:wzg
 * createTime: 2022/1/15/015 10:32
 * desc: todo...
 */
@Data
public class BaiDuVoice  implements Serializable {
    /**
     * {
     *   "results_recognition": [
     *     "你好。"
     *   ],
     *   "result_type": "final_result",
     *   "best_result": "你好。",
     *   "origin_result": {
     *     "corpus_no": 7053274209654400480,
     *     "err_no": 0,
     *     "product_id": 1537,
     *     "product_line": "open",
     *     "result": {
     *       "word": [
     *         "你好。"
     *       ]
     *     },
     *     "sn": "e06238d6-7db2-4d1f-b441-c0c418610e3f"
     *   },
     *   "error": 0
     */


    private String result_type;
    private String best_result;
    private OriginResultDTO origin_result;
    private Integer error;
    private List<String> results_recognition;

    @Data
    public static class OriginResultDTO implements Serializable {
        private Long corpus_no;
        private Integer err_no;
        private Integer product_id;
        private String product_line;
        private ResultDTO result;
        private String sn;

        @Data
        public static class ResultDTO implements Serializable {
            private List<String> word;
        }
    }
}
